 // 开发版本
 const devConfig = {
   Debug: true,
   AppId: 'wxdb6494e588b1f5bf',
   QmapKey: 'YDABZ-WYA6U-ILAVJ-2VRYW-BTRUS-S3BT4',
   API: "https://api.hangzhouyizuke.com",
  //  API: "http://127.0.0.1:10002",
   Title: '易租客租车',
   FddAppId: 'wx855361a721050c6b'
 }

 // 体验版本
 const trialConfig = {
   Debug: true,
   AppId: 'wxdb6494e588b1f5bf',
   QmapKey: 'YDABZ-WYA6U-ILAVJ-2VRYW-BTRUS-S3BT4',
   API: "https://api.hangzhouyizuke.com",
   Title: '易租客租车',
   FddAppId: 'wx855361a721050c6b'
 }

 // 发布版本
 const releaseConfig = {
   Debug: false,
   AppId: 'wxdb6494e588b1f5bf',
   QmapKey: 'YDABZ-WYA6U-ILAVJ-2VRYW-BTRUS-S3BT4',
   API: 'https://api.hangzhouyizuke.com',
   Title: '易租客租车',
   FddAppId: 'wxa1439f77c6d06a15'
 }

 export default {
   getConfig() {
     const info = wx.getAccountInfoSync()
     let config = {}
     switch (info.miniProgram.envVersion) {
       case 'develop':
         config = devConfig
         break
       case 'trial':
         config = trialConfig
         break
       case 'release':
         config = releaseConfig
         break
       default:
         config = releaseConfig
         break
     }
     if (info.appId) {
       config.AppId = info.appId
     }
     config.Version = info.version || '1.3.2'
     return config
   }
 }